package shape;

public class Rectangle extends Shape {
    double Height, Width;
    Rectangle () {
        Name = "Rectangle";
    }
    Rectangle (double width, double height) {
        Width = width;
        Height = height;
        Name = "Rectangle";
    }
    Rectangle (double width, double height, String color) {
        Width = width;
        Height = height;
        Color = color;
        IsFilled = true;
        Name = "Rectangle";
    }
    public double getWidth () {
        return Width;
    }
    public void setWidth (double width) {
        Width = width;
    }
    public double getHeight () {
        return Height;
    }
    public void setHeight (double height) {
        Height = height;
    }
    public double getArea() {
        return Width * Height;
    }
    public double getPerimeter() {
        return 2 * (Height + Width);
    }
}
